package com.lzj.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzj.admin.pojo.Goods;
import com.lzj.admin.query.GoodsQuery;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 商品表服务
 * @author 杨骅麟
 * @date 2024
 */
@Service
public interface GoodsService extends IService<Goods> {

    Map<String, Object> goodsList(GoodsQuery goodsQuery);


    String genGoodsCode();

    void saveGoods(Goods goods);

    void updateGoods(Goods goods);

    void deleteGoods(Integer id);

    void updateStock(Goods goods);

    void deleteStock(Integer id);

    Goods getGoodsInfoById(Integer gid);

    Map<String, Object> stockList(GoodsQuery goodsQuery);


}
